# @Author     ：SEED
# @DateTime   ：2019-09-24  16:53 
# @FileName   ：urls.py

from django.urls import path, include
from .views import project, deploy
from rest_framework import routers

router = routers.SimpleRouter()
router.register('projects', project.ProjectViewSet, base_name="projects")
router.register('deploy-order', deploy.DeployOrderViewSet, base_name="deploy-order")
# router.register('build-record', deploy.BuildRecordViewSet, base_name="build-record")
urlpatterns = [
    path('api/deployment/', include(router.urls)),
    path('api/deployment/version', deploy.VersionView.as_view(), name='version'),
    path('api/deployment/build', deploy.BuildView.as_view(), name='build'),
    path('api/deployment/build-record', deploy.BuildRecordView.as_view(), name='build-record'),
    path('api/deployment/deploy-record', deploy.DeployRecordView.as_view(), name='deploy-record'),
    path('api/deployment/build-start', deploy.BuildStartView.as_view(), name='build-start'),
    path('api/deployment/deploy-start', deploy.DeployStartView.as_view(), name='deploy-start')
]
